<?php
require_once(APPPATH . 'controllers/frontend/layout.php');

class About extends Layout {
       
    public function __construct() {
        parent::__construct();
        $this->load->library('googlemaps');
    }
    
    public function index(){
        $config['zoom'] = "auto";
        $this->googlemaps->initialize($config);
        $marker = array();
        $marker['position'] = "dai hoc thuy loi, ha noi";
        $marker['animation'] = 'BOUNCE';
        $this->googlemaps->add_marker($marker);
        $data = array();
        $this->_data['data']['map'] = $this->googlemaps->create_map();
        
        $this->_data['data']['content'] = $this->mabout->fetchAll();
        $this->_data['title'] = "Về chúng tôi";
        $this->_data['temp'] = "frontend/about/index";
        $this->load->view('frontend/layout/index',$this->_data);
    }

}
